Adding a mock criterion hook