The invention relates to a method for loading a program module (L1, L2,
L3) in a terminal, in which one or several programs (A, B) are running,
and in which method subroutines (P1, P2, P3) are stored in said program
modules (L1, L2, L3). The program modules (L1, L2, L3) are provided with
first tags (T1, T2, T3), wherein to start binding, the program makes a
call (7) to a subroutine (P1, P2, P3). The call (7) is supplemented with
the first tags (T1, T2, T3) to select the program module (L1, L2, L3) for
binding, in which the called subroutine (P1, P2, P3) is stored. The tags
(T1, T2, T3) are supplemented with second tags (LT1, LT2, LT3). The call
(7) is also supplemented with said second call data (PKx, PKy, PKz). In
connection with the binding, said first tags (T1, T2, T3) stored in the
program modules are compared with the first tags (T1, T2, T3) transmitted
in the call (7), and the second tags (LT1, LT2, LT3) are compared with
the second call data (PKx, PKy, PKz) transmitted in the call (7), wherein
the program module to be bound is selected to be the program module which
matches with the first tags (T1, T2, T3) and the second call data (PKx,
PKy, PKz) transmitted in the call. The invention also relates to a
terminal (MT).