Made box_mapper more robust.