An optional class and logging utilities