Added handling of wrong URLs.