Some initial work before going offline