Added signal strength calculation. Memory from priv struct is now being released.