Work properly when RMF is embedded in another project (e.g. IMP).