Factors that affect the immune system