Minor additions for debug logging stuff