Finished CSM calculation