Added settings for dirty_ratio
A few new tweaks