Change patch to work with meters instead of rssi, add utils for Samsung and Mag, starting to fix memory leak