Added checks to property setters.