Added several base functions.

I will document these later. No, I will not document them.