Fixes #42. Note: to see it in the app itself, I'll add it to libcommon (https://gitlab.com/juanitobananas/libcommon/) because WaveUp also uses it, so it might as well profit from it :)