Updated with correction for Wismote emulation