Changed old logging calls to their new counter part