Tweaked the way that the buffer gets cleared after each command. This should let us stop worrying about overflow and suff