Corrected error with callback method not picking up the current window
settings.