Added rough offline messaging support