Updated to the new window.max methods
Adding in Dictionary interactions.