Removed warning and associated functions and changed the relevant calls to Errors