getProperties method added.