Added support for horizontal row checking.