Implement basic lookahead support