Addded debug statements