Adding file input mechanism