Changed consistency condition to work for integral weights