Clean up branching stuff.
Support for link.