Reordering the code