Wrote a helper function for cmd_interface.py that improved data abstraction in the subroutines for inserting and removing connections.