Adding text_offset variable