WIP - loops when generating type hashes.