Adding additional parameter to be able specify the output format type