Use block instead of code