Restored code for cube save, recall, and reset: not yet tested.