Added object detection and email alerts