Reworked restore.
Merge branch 'test' into dev