Added support for restoring from a specific paste