Updating functions, adding detections, and including comments