Added initial code to make the window replicantable.