Added show result and halt state/function