Added support for custom URL protocols.