Parallelised the transform method, want to try with futures though, needs some thought