Backend for the drag & drop