Added input functions to lua scripts.