Better logging + logentries.
Reload database on pop().
Better distance comparison.
Better sync.
Log RSSI.