Added general stencil and connect shapes method.