Added serialize and deserialize Lua functions
Solved conflict