Support Scala in GFM mode.