Idleness detector script