Wrap up in transaction