Added ability to queue child states and register them once their parent is registered.