1. Refactored injection to allow for testing.