Added capability to change date range