Added a timer and checked for more errors during file input.