ADded function foo.

Explanation etc.