Option added and tested to set the output type