Added ability to input multiple files.