Debugging issue in new get_percent_crowd_agreement() function