Added basic offline support.