Added option to create a new window for testing to detect logout-equation