Private iPhone source code; not optimized.