Rewrote all the MainPhone class and applied the 1.7.9 build.