First commit for tracker cases. Still need to modify main.pm to make it work.