Supplemented with a few convenient logging methods.