Added fog support