Also moved write_numbers to utils