Added ability to serialize child nodes