Commented tracking algorithm