Adding some insight for the height calculation algorithm.