Better row/column repetitions
Fixed _attr error
Removed debuging messages