Reordering lines of code