Added shift_to_zero function