Adding checkMain()

Pretty straightforward description in the title.