Added cleanup_merge operation