Included gradient in initial density.