Updated Window initialization to comply with new standards