Updated Handshaking. Connected to GUI.