Added some front end stuff for the error checking