Added some missing lua functions.