Fork of the Master Thesis of Jarkko Laitinen from https://yousource.it.jyu.fi/thesis-code/thesis-code