Adding a catch in case it gets run without the input file.