Use inject instead of each for less complexity