My custom code for the SoMo device by SonicWear