Improved DSK handling from Mike Douglas and bug fix in URLContens.