Implementation for adding new line