Use period instead of date when creating a simulation.
Code cleanup.