Added enhancement to allow for specifying variable name to restore.

Contributes to gh-3015