Refactored graph based tracking to work on chunked data