Added global settings, added online/offline functionality.