Added function() function for Lua