More structural improvements to frontend code output