Move output commands to their own file