Final thesis revision