Corrected issue with window not being focused.