Adding Middleware Class to calculate time to run search queryset