Temp files and shit. Did double buffering