Added CPU stats check
Fixed the warning: Using a hash as a reference is deprecated