Fixed type of cores, added time measurement.