First version with output to rmob;