New option to change perimeter order. #534