MaxMind-interfacing function, now written!