Added Log class for managing transactions