Ah right. I copied the code from duration a bit too literally.