Added debug statemets