Added a connection interface, to enable the interface of more clever actions.