Fixing utils.gencpf. This resolves #4