This check is done before this function is called.