Adding cpu usage functionality