Code structure while working on our termination conditions using a state manager and a notification center.