Code can now be run with input files