To fix any mis-monoisotopic alignment issues, the spectrum is shifted, usually by a range of up to ±3 isotopes, and the score for each of those shifts is calculated (Figure , step 2). The shift with the best score is used. If multiple shifts meet the cosine similarity score threshold, then these shifts are also returned as possible monoisotopic masses (see Supplemental Discussion SD1).