Added think function to lua