Modularized Horizontal and Vertical line generation.