Adds support for a max height

Self explaining :)