Added connecting functions.