Moved LogInitialization to correct location