Implemented moving instead of deleting.