Allow passing blocks to callbacks