Adding NSURL support