Make lookahead configurable