WIP: use only a single f and g per simulation by merging multiple columns.