Working on file based input