Updated to include row-column manipulations