Modify order of instructions in import method