Adding source code extracted from Moses