Added couts for debugging.