Added ability for IP to be set