Added automatic cpu size checking