Add basic dependency injection functionality.