Add track reference transform code