Optimized parser code