Fixed bug - date comparisons are now correct.