Redesigned Stencil class.