Removed unused vars and changed the input args to be required and not file.