Adding functions and drawing functions.