In 1822, members of the church, led by Denmark Vesey, a lay preacher and carpenter who had bought his freedom after winning a lottery, planned an uprising and escape to Haiti—initially for Bastille Day—that failed when one slave revealed the plot to his master. Over the next month, the city's intendant (mayor) James Hamilton Jr. organized a militia for regular patrols, initiated a secret and extrajudicial tribunal to investigate, and hanged 35 and exiled 35 or 37 slaves to Spanish Cuba for their involvement. Hamilton imposed more restrictions on both free and enslaved Blacks: South Carolina required free Black sailors to be imprisoned while their ships were in Charleston Harbor though international treaties eventually required the United States to quash the practice; free Blacks were banned from returning to the state if they left for any reason; slaves were given a 9:15 pm curfew; the city razed Hampstead Church to the ground and erected a new arsenal. This structure later was the basis of the Citadel's first campus. The AME congregation built a new church but in 1834 the city banned it and all Black worship services, following Nat Turner's 1831 rebellion in Virginia. The estimated 10% of slaves who came to America as Muslims never had a separate mosque. Slaveholders sometimes provided them with beef rations in place of pork in recognition of religious traditions.