Allow configuration with a block.