https://github.com/Wiceradon/SMPD/issues/6 - and tests