Added docblocks for logging