Added a pile of debug statements