Removed dependence of ErrorMessage()