Added functionality for drawing dots.