Prevent appending output on multiple clicks.