Updated writing_data_lua in order to use prototyper 5.1.0