Added window swapping.