Added support for multiple files