Some changes to log helper