Fix Matatat and SecuBot.

I was having trouble getting the Ruby MMO running with Matatat and SecuBot. @davidk01 and @mtfoley, would you mind making sure that I haven't changed the underlying algorithm that you intended?