Improve sb3 conversion script.