Added support for multiple formatters
Hacking to get the output to file for json