added idleTimer set to 0 for idle case