Collection of code used throughout my research.