Add metrics reset function