Updated IP check