Connections variables and constructor taken from node class.