still working out port connection code.