Improvements of TF analysis script.