Updated version for new cookie law