Added code for getting data from past week