Code used for evaluation in doctoral dissertation.