Added debug out. Ready for test