Added support for handling multiple files at once