Implemented --output option.