Initial version of drawing functions