Core code of untracked.py