Added scala sharing.