Added function get_data()