Transaction and group logic