Fixing the builder to accomodate more than 2 lines.