Got transactions to work upon ending lottery