Updated to work with the new WeMo firmware.