Created condition that sets transaction to roll back