Implemented automatic idle.