Date objects are mutable, so store copy. Fixed up variables so they are all in one place.
Changed paths: