Updated for metrics 3 (closes #13), and removed legacy support (closes #14).