Trying to fix timing issue with logs