Adding in distinct functionality