Modified Storage class algorithm.