Modify default handling of cookiepolicy functions