Working version of drag and drop.