Duplicate lua function removed