Offline mode done, TODO: online mode

Offline mode should be working now.