Added basic functions required for the algorithm. Nap time.