CONNECT related functions added.