Add some functionality for querying restore actions