(WIP) Refactoring necessary for view controller containment.