Updated to accept a minOpacity