Date functionality added.