Ooops... I missed the /clear command when I was looking over the code before making my suggestion.
Not sure how I missed such an obvious line.