Added condition for flash full