Added height function from previous prototype