Analyze function for GA also