Added the domain check function and some optional menus and links.