Refactored LinkParser into main file.