Use block instead passing as argument