Updated restore to include routines in backup