Update for funcional programming.