Add TAction, which is the core part in the algorithm.