Added some debug capability to reproduceRattay, which can be set as an optional input.