Client middleware added