Taking advantage of the functional part to reduce the amount of code :)
Merge pull request #1 from fdaciuk/improve-max-height

Taking advantage of the functional part to reduce the amount of code :)