Added the ability to work from file:// protocol.