Changed get_* and set_* to a single function