Added support for customisable grid height