Removed support for mulltiple windows.

In order to simplify the code.