New version with tgt.py