Add full support for branches.