Create branch and add logic