Fixed fog scale and relocated constants at top