Added fog and a global preference