Adding time constraint of 2 years and working on median number of visits