Why to query add_requested_ip two times (Couple of lines above and later in CheckIP)?