Add check answer function.