Code cleanup.
Finished the code behind.