Fix error code detection.
Optimize memory usage.
Add phone.py example.