Add initial version of connection related functions.