Added a dynamic window setting