Major overhaul of move_bin