Whitelist utility function