This is really heavy to do each time there is a function to be injected.