Added a calledInstructionByName function in Method