Allow clone from different modes.
Correct bugs introduced by mode => release_mode change.
get_data() needs to use $queue to fetch the data id.