Fix whitespace
Make aggregate functions filter out nils
doseq, not for
Need to rewind buffer after filling it up
Pull some duplication out into a function