Latest version of the thesis