Changed GUI, added a heartbeat timer to protocol between server and client.