Complete version of thesis.