Source code written during my master dissertation.