Added filter to getCurrentIP.