Changed to multidimensional centers, which changed the equations quite a bit. As-is, there is no way to specify a multidimensional center so this change can be reverted if it doesn't work well