Remove an unnecessary for loop and change add duplicate to use a kw arg for the IP address argument.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>