Adding idle system monitoring code