Master Thesis at KTH