Adding debug
Problems resolved