Added check for CPU sleep