Relocated TFM logic