Added function to add folders sequentially in offline mode.