Things to do in the FMD offline code ------------------------------------