Added support for multiple file formats (run with -h for details)