Adapted code to use DropURL class