Added line numbers to brain error checking