Encapsulated branch printing code.