Port _Tracker to Scala