Create compliance function ()