Be more restrict on some parameter types and values.