Adding debug msgs