Now passing dependency path to middleware