Test code to add start/end cap, currently commented out on Arc.