Added set_properties() method.