Added support for storing offline when NW is down