Added some debug logging back in.