Do this in a loop over a glob instead.