Reorder the code