Added merging of branches for programs