Revert "Remove height cap."

This reverts commit f73d35fc9278fb6ffe1fe405e952a45ce24181b1.
Add height cap again.