Only invoke your callback when a specific condition is met.