Added the ability to get the primary branch