Add end lines