Added some hooks for injection for module inclusion.