Added type tracking mechanism to TrackingPolicy. It is usefull as a standalone aplication, though...