Reimplementing window methods