Renamed "get first link" function