Added more functions to be used from lua