Renamed $query to $efq, to not confuse with shortcut query.
No need for debug IP.
No need for fallback code.
Comment.
Whitespace.
Comment format.
Anonymize IP addresses with ip_anon.