Add setter method for various properties.