Added Screen dimming code. Not perfect at the moment