Add dependency injection alternative