Add metrics logging selection.
Remove debug output.