Added MinMax height generator.

Fixes #1578.