Implemented a minimal dependency injection scheme