Added support for multiple file types as input format