Rearranged the application order