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