Added some logic to get the current display settings.