Add support for idle states.