Modify allow domains and add approved functions