Added type hint for service provider