Limited the stats for past 30days and added an option to change the time period.