Adding height calculation