Various code to run RoDI