Add back online condition