Changed from dropping wrong values to sending max/min values accordingly