Added offline saving and bug fixes.