Added support for file input