Added status check while reading input files.