Worked on window system and multiple contexts