Factor out the fetch() loop, Types() beginnings