Doing the serial calculation