Use simpler linear search for Envelope.py