Changed the way setter functions are called.