Added resource injection.