Added ability to optionally set object properties (class, namespace, property)