Implement --block and --condition