Added setting of custom properties.