First set of functions

Still not complete. Only a few functions that do not depend on any
other function to perform their actions