Implemeted start of internal parser for perforance.