BB learnage and full refactor.