Implemented offline save functionality.
Cleanup to come