Working version of functions. No documentation yet.