Rearranged the order of the actions