Reordering code