Added return value to lua scripts