Added snapshot API.