Module transactions - code optimalization