Fixed stuff. Restore now works. Yay.