Writeup mostly done