Added window copying