Added iterateSwarm, convenience function