Adds a get/set functionality