setting idle threshold 20 seconds