Accept not a proc but a block as an argument