Moved buffer and stream initialization into the node initializer.