The ZBA must issue a decision on a comprehensive permit within 40 days of the public hearing. The decision must be approved by a simple majority of the ZBA members sitting on the case. The decision must be filed with the city or town clerk, and once it is filed, a 20-day appeal period ensues. An aggrieved developer files an appeal with the HAC. Other parties seeking to challenge approval of a comprehensive permit file their appeal in the Superior Court or Land Court pursuant to G.L. c. 40A, § 17.