Added Window class methods.