Updated fast_transform.