Removed the use of get_data() and set_data() as they are now deprecated.