Updated idle sources to use closures.