Adding IP check