Might not seem to matter, but this makes the algorithm more efficient and makes sure there are no errors.