Added window clearing.