Debug output added.