Small changes to log helper