Added CPU and memory tracking