Add line ends