Added support for weirder links.
Removed debug statements.