Add datasize,rule check.