More functional utils.