Rearranged instructions for clarity