Implemented cpu usage monitoring.