Added cpu management and made a few correction.