Completed framework for auto transaction logic