Matsuo implementation