Implemented the functions for Connections.