Fix bug in updateAccounts.
Move logInfo to Utils class.