Move loop_data to private section