Factors loading code added