Error and warning functions updated #1.