Abstract getting branches