The major type of banditry was conducted by the infamous outlaws of the West, including Jesse James, Billy the Kid, the Dalton Gang, Black Bart, Butch Cassidy, Sundance Kid and the Butch Cassidy's Wild Bunch and hundreds of others who preyed on banks, trains, stagecoaches, and in some cases even armed government transports such as the Wham Paymaster Robbery and the Skeleton Canyon Robbery. Some of the outlaws, such as Jesse James, were products of the violence of the Civil War (James had ridden with Quantrill's Raiders) and others became outlaws during hard times in the cattle industry. Many were misfits and drifters who roamed the West avoiding the law. In rural areas Joaquin Murieta, Jack Powers, Augustine Chacon and other bandits terrorized the state. When outlaw gangs were near, towns would occasionally raise a posse to drive them out or capture them. Seeing that the need to combat the bandits was a growing business opportunity, Allan Pinkerton ordered his National Detective Agency, founded in 1850, to open branches in the West, and they got into the business of pursuing and capturing outlaws. There was plenty of business thanks to the criminals such as the James Gang, Butch Cassidy, Sam Bass, and dozens of others. To take refuge from the law, outlaws would use the advantages of the open range, remote passes and badlands to hide. While some settlements and towns in the frontier also house outlaws and criminals, which were called "outlaw towns".