Added go online and offline methods