Adding offline cache support.