Added methods to Window class.