Replaced local injection with global injection