Thesis' stuff code.