Add idle time to scripts
Still missing a reset of idle time