Moved the offset to always the beginning of the line, as required by the login in the process_file
By doing this, we dont have any more duplicated queries