added date filtering.