Switch to a functional style.