Adds offline functionality