Linkout function was refactored.