In the process of cleaning up the personDetectionCode