Added value checking on constructor.