Renamed getBranch and getMaster to more a more accurate name