Transform datastructures automatically