Finished Main with all tk and Pearls.