Added a window for purging elements