Code done for line_wrapper.