Main routine updates with user.email configuration fixed.