It's not. I have re-written the stuff in the lines below, just with an extra check to see if the dcms already been calculated.