Implemented drag and drop.