Make branch code lazy loading