Backporting fctracker.py to v0.1.x branch