Added logs.
Fix maxretries for activation.