Add functionality to call lua functions.