Added useful comments for debugging.