And fix the code so we get the proper middle, i.e. measure from the top's bottom to the bottom's top (hah!).