Removed ERROR function because it was not useful anymore