Improve parameters for generateHeight