Simplify code on slides.