API usage with blocks.