Added check of block arity