Implement unwrap in stub.