Added the pipe poll check into the server class. In the client class, I rewrote the check for controller commands section.