Added scala mode.