Added case when there is maximum known rank reached