Changing API methods to set/get