Add refs & heads.