Add transformations, and debug a bit.