Changed windows to run method