Implement setter for public properties