Functions implemented.

I may be ready to start debugging.