Use doseq for side-effecting loop