NF/BF: Autogen csv logs and fixed Ref val error with dicts.