Minor function refinement.