Use block to alter activities criteria