perform_analysis function

Perform analysis