Adding method to get work done in a block.