Added back-end code for min-max spread