Finally got gather working jesus christ
Refactored code to make foundation for iterations
Wrapped in a one-iteration loop