Added client middleware to communication package.