Generalize for peek and demo.