Adding first version of basic functions.