Exported distinct function.