Mahak's cs changes: Zero rows eliminated