Added some debug tools.