Use 2-stage parsing to avoid performance issues