Refactored addheight to prepare for new functionality.