Added basic factor analysis.