Fixed bug #24, Added toggle for dhcp