Source code from the fub-kit team 2013