Implemented Restore from file (Still some details need revision)