Some higher order functions.