Updated conversion script