Added a method to branch