Renamed private helper method,

in order to make it a bit clearer, what it does.
Moved addition of first link up,

in order to move it closer to the other lines of code that refer to that
variable.