Add main_window check for new code.