Added equal height calculation