A simpler way use blocks safely.