Trying foldlM for lazy IOs.