Removed debug string. Added support for more URL types.