The print command returns any value other than zero? Okay, I did not consider this. Setting explicitly 'return 0' at the end of the TMF produces same results as without the TMF. Thanks!