Made the file name in the error checking module optional.