The baojia system, also known as the village defense law or security group law, was a project to improve local security and relieve local government of administrative duties. It ordered groups of ten, fifty, and five hundred men security groups to be organized. Each was to be led by a headman. Initially each household with more than two male adults had to provide one security guard, but this unrealistic expectation was decreased to one per five households later on. The security groups exercised police powers, organized night watches, and trained in martial arts when no agricultural work was required. Essentially it was a local militia with the main effect being a decrease in government expenditures, since the local population was responsible for its own protection.