Added lua support functions.