Reorder statements to make it more robust.