Added debugging messsages