HCP analysis function complete