Adding transaction functions example