Implemented iterative inject method