Changed some of the ruby simulator handling code.