Vertical win identified. Ugly, in desperate need of refactoring, but is a start.