Added some code for display and resolutions