Added proper processing of the columns
indexes, proper shrinking