Scripts used in my phd