Fixed threading issue, but the print on lines 159-160 (after create_records()) never actually print?