Removed duplicate Lua code, started on Lua input