Logic of finding beacon