Fixing initial load (it was just returning without doing anything before because nothing would have been changed because the tmp file would have been already open). Next I want to make it support running inside an existing session (and this should include allowing multiple ones in one or separate sessions).