Adds initial implementation of junctions.