Updated the drawing functions.