Final version of Thesis.