Moving helper functions from private to public repositories.