Split link adding code out into private method