Debug output added