Fixed bug (1 time) in AddCommand.
Reverted change of extracting constants in DateTimePair.