It established juvenile courts and introduced the registration of foster parents, thus regulating baby-farming and wet-nursing and trying to stamp out infanticide. Local authorities were also granted powers to keep poor children out of the workhouse and protect them from abuse. The act also prevented children working in dangerous trades and prevented them from purchasing cigarettes and entering pubs. The act also prevented children from learning the "Tricks of the Trade" in adult prisons, where children were often sent to serve time if a crime had been committed. Instead the Children's Charter had allocated Borstals. It eventually led to many councils setting up social services and Orphanages.