More code. Nearing completiong. One major function still not coded.