Add a "idle" method to the state structure