Added some missing stuff for the lua bindings.