Create one function for capability check.