Undercover police agents have discovered a building which was registered as a church but actually being run and operated as a sex club.

According to WTVF-TV report, the city of Nashville has filed a complaint against the owners for “maintaining a public nuisance by permitting acts of lewd conduct” and violating a state law banning sex clubs from operating within 1,000 feet of a school.

The longtime downtown swingers club underwent a conversion in 2015 when it relocated to a run-down office park in the community of Madison, calling itself a church because the new location is near the back of the private Good pasture Christian School.

Two codes inspectors paid $40 to enter the facility in March and filed affidavits detailing sex acts they witnessed within.

The city is seeking to close the club.