Added some debug messages and DHCP test code