Added read/write from swap files