Added freeze_params option.