Modified the client application to correctly interpret server signals.