I'm not sure if you need this here, since this will be in the function that finds the canonical coordinates.