Added setProperty() method.