Used setResolvedUrl method instead of Addlink to get better performance