Add a timeout function for lua scripts
Add an auto-hider script