Added some extra debugging.