Removing error messages that are not being used