Added scala mode and rtm