Re-wrote shift_window() and place_window().