Added option to set negative values to 0