Restore maches and prepare for update