Add a bunch of temporary debugging code.