Added internal/external links subroutines