Allow IP variable to be optional
Fix name of variables in example