Add error checking. If req.ip does not exist, do not track.