Confirming to NSCoding to support UI restoration.