add metrics option.