Inject types in a different way.