Simplified 3698c4f.