Remove unused variable and modify print results.