Added an error system