Added debug statements as stated in gh-43