Separating client and client's gui.