Added some pesudo code to render children.