Implemented a link tracking.
Refactored.