Support for injecting init functions