Added horizontal matching.
Add horizontal checking