Section 31.040