Added loop until new line is entered