Multi-dimensional functions.

Multi-dimensional functions.