Rename N, p and r parameters.