Added mean helpers, tests, and adjusted for look up table.