Adding transaction callback