Debug prints, and limiting window size