Added functionality for branches that don't have a parent