Added IP check for security