Lua Wrapper to papply