Added functionality for computing heights