Added lexical file logic