Getting rid of that horrid flatten with an #inject.