Add a comment at the start of this function that it assumes data is valid and verified.