Added code for server and client pipping.