Added stuff to deallocate storage when a round completes.