Trying offline and Online functionality