Proof-of-concept code for turning functions into real functions.