Fixed lookahead, should be working now (no, really :P). Also added a compiled version over the original SP implementation.