Extension of transaction adding function