Add offline support

This actually happened in the same time frame as all the previous
commits, but I was lazy and didn't commit.