Adds output option handling.