First version of thesis.