Helper functions.
ex 2.20
ex 2.20