Updated nearest mag comparison method and tutorial