Added date loop