Forgot to actually start the output. Added the waitgroup support for good measure.