In such a manner that meets requirements or conditions, or to an appropriate degree.
Tactfully enough to avoid causing a problem.