Moved functions inside of Build, updated Testable interface, and updated logger to attach to email