Moved multiget output into its own function.