Added target selection via a generic StmtGenerator

Also implemented enough to get local laplacian back to a respectable speed