Added function detections