Added hidden object detection, and malformed output