Modified IOSystem and implemented restore functionality.