A method (MTH) for modifying the execution of a platform-independent first method (F0) of an application (APP) within an integrated circuit card (ICC), said integrated circuit card (ICC) comprising a first non-volatile memory (MEM1), a second rewritable non-volatile memory (MEM2), a virtual machine (VM) and a processor unit (PR), wherein said platform-independent first method (F0) comprises a first operations sequence (FOb) and a second operations sequence (FOc), and wherein said method (MTH) comprises: - checking by means of said virtual machine (VM) if there is a call within said platform-independent first method (F0) to a specific second method (F1), said specific second method (F1), stored in a memory (MEM1, MEM2) of said integrated circuit card (ICC), comprises one parameter (TG1); - if there is such a call, said processor unit (PR) or said virtual machine (VM) executes said specific second method (F1); - said processor unit (PR) or said virtual machine (VM) checking if there is an alternate function (F2) associated to said platform-independent first method (F0), said alternate function (F2) being stored in a memory (MEM1, MEM2) of said integrated circuit card (ICC); said processor unit (PR) or said virtual machine (VM) using said parameter (TG1) to locate the alternate function (F2) within said integrated circuit card memory; - if there is an associated alternate function (F2): - executing by means of said processor unit (PR) or by means of said virtual machine (VM) said alternate function (F2), said alternate function (F2) replacing said first operations sequence (FOb); - upon completion of said alternate function (F2), skipping said first operations sequence (FOb) and executing by means of said virtual machine (VM) the second operations sequence (FOc) of said platform-independent first method (F0). - checking by means of said virtual machine (VM) if there is a call within said platform-independent first method (F0) to a specific second method (F1), said specific second method (F1), stored in a memory (MEM1, MEM2) of said integrated circuit card (ICC), comprises one parameter (TG1); - if there is such a call, said processor unit (PR) or said virtual machine (VM) executes said specific second method (F1); - said processor unit (PR) or said virtual machine (VM) checking if there is an alternate function (F2) associated to said platform-independent first method (F0), said alternate function (F2) being stored in a memory (MEM1, MEM2) of said integrated circuit card (ICC); said processor unit (PR) or said virtual machine (VM) using said parameter (TG1) to locate the alternate function (F2) within said integrated circuit card memory; - if there is an associated alternate function (F2): - executing by means of said processor unit (PR) or by means of said virtual machine (VM) said alternate function (F2), said alternate function (F2) replacing said first operations sequence (FOb); - upon completion of said alternate function (F2), skipping said first operations sequence (FOb) and executing by means of said virtual machine (VM) the second operations sequence (FOc) of said platform-independent first method (F0). - executing by means of said processor unit (PR) or by means of said virtual machine (VM) said alternate function (F2), said alternate function (F2) replacing said first operations sequence (FOb); - upon completion of said alternate function (F2), skipping said first operations sequence (FOb) and executing by means of said virtual machine (VM) the second operations sequence (FOc) of said platform-independent first method (F0). <EOS>