Import of code from the RODA project.