Error handling: Use TFR() macro where applicable