Working server code tested with full communication.