Added code for service dependency injection